import { request } from "@/utils/request";

// 登录
export const login = (data) => {
	  return request({
		method: 'POST',
		data,
		url: '/wechat/sso/doLogin'
	})
}

// 获取轮播图列表
export const getBannerList = (data) => {
	  return request({
		method: 'POST',
		data,
		url: '/app/memberCarousel/list'
	})
}

// 获取用户基本信息
export const getUserInfo = (data) => {
	  return request({
		method: 'GET',
		data,
		url: '/app/memberUser/info'
	})
}

// 保存用户基础信息
export const saveUserInfo = (data) => {
	  return request({
		method: 'POST',
		data,
		url: '/app/memberUser/submit'
	})
}

// 图片删除
export const deleteImg = (data) => {
	  return request({
		method: 'GET',
		data,
		url: '/app/memberUserUpload/delete'
	})
}

// 保存数据测量图片
export const saveImg = (data) => {
	  return request({
		method: 'POST',
		data,
		url: '/app/memberUserUpload/add'
	})
}

// 更新数据测量图片
export const updateImg = (data,id) => {
	  return request({
		method: 'POST',
		data,
		url: `/app/memberUserUpload/update/${id}`
	})
}

// 获取用户报告生成状态
export const getReportStatus = (data) => {
	  return request({
		method: 'POST',
		data,
		url: '/app/memberUserUpload/list'
	})
}